home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-09-02 | 561 b | 22 lines | [TEXT/ToyS] |
- -- define the standard HTTP header
- set LF to ASCII character (10)
- set CR to return
- set CRLF to CR & LF
- set http_10_header to "HTTP/1.0 200 OK" & CRLF & ¬
- "Server: MacHTTP" & CRLF & ¬
- "MIME-Version: 1.0" & CRLF & ¬
- "Content-type: text/html" & CRLF & CRLF
-
- -- get the date and time
- set theDateAndTime to the (current date) as string
-
- -- return the results as an HTML file
- return http_10_header & ¬
- "<html>" & ¬
- "<head>" & ¬
- "<title>Hello, Reader</title>" & ¬
- "</head>" & ¬
- "<body>The date and time is " & theDateAndTime & "." & ¬
- "</body" & ¬
- "</html>"
-